<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/detail/default.css" />
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/detail/component.css" />
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/amazeui.min.css"/>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/hy.admin.css"/>
		<script src="{$_C.hy_path}js/detail/modernizr.custom.js"></script>
		
	</head>
	<body>
		<div class="am-g">
			 {include file='../Common/hy_header.html'}
			 	
      <div class="am-u-md-6 am-cf">
        <div class="am-fl am-cf">
          <div class="am-btn-toolbar am-fl">
             <div class="am-btn-group am-btn-group-xs">
            <!--
            <button data-title="新建弹框" data-id="box_{$group_id}" data-href="index.php?g=admin&m=chat&a=box_content&id={$box.id}&group_id={$group_id}" class="am-btn am-btn-default am-btn-xs am-text-secondary hy-js-href"><span class="am-icon-plus"></span> 新建弹框</button>
		   -->
		    </div>
            

           
          </div>
        </div>
      </div>
      <div class="am-u-md-3 am-cf">
        <div class="am-fr">
          <div class="am-input-group am-input-group-sm">
          	<select name="cat_id" id="cat_id" class="am-form-field">
               
               <option value="0">--- --- ---</option>
      			{foreach from=$boxs item=box}
				 <option value="{$box.id}"   {if $box_id ==  $box.id}selected{/if}   >{$box.name}</option>
				 {/foreach}
            </select>
          
                <span class="am-input-group-btn">
                  <button class="am-btn am-btn-default" type="button" onclick="searchMenu()">搜索</button>
                </span>
          </div>
        </div>
      </div>
      
      <div class="am-g">
      <div class="am-u-sm-12">
        <div class="am-form">
          <table class="am-table am-table-striped am-table-hover hy-table-main">
            <thead>
              <tr>
               <th class="table-title"></th>
                <th class="table-title">序号</th>
                <th class="table-type">用户openid</th>
                <th class="table-date">关联弹框组</th>
				<th class="table-date">奖项</th>
				<th class="table-date">真实姓名</th>
                <th class="table-date">联系电话</th>
                <th class="table-date">提交时间</th>
                
                
              </tr>
          </thead>
          <tbody>
          	{foreach from=$box_list item=box}
            <tr>
            	<td></td>
              <td>{$box.id}</td>
              <td>{$box.openid}（{$box.nickname}）</td>
			   <td>{$box.group_name}</td>
			     <td>{$box.box_name|default:" - "}</td>
				<td>{$box.name} </td>
				<td>{$box.phone}</td>
				 <td>{$box.addtime}</td>
 
            </tr>
             {/foreach} 
          </tbody>
        </table>
          <div class="am-cf">

  <div class="am-fr">
  	<div class="hy_page">
  {$box_list_page}
  </div>
  </div>
</div>
          <hr />
      
        </div>
      </div>

    </div>
    </div>
   {include file='../Common/hy_footer.html'}
  
  
		<script>
   	
	function searchMenu()
	{
//		alert($("#cat_id option:selected").val());	
		
		window.location.href = "index.php?g=admin&m=chat&a=box_user_list&group_id={$group_id}&box_id="+$("#cat_id option:selected").val();
	}
	
   </script>
	</body>
</html>
